package com.aloha.common.init;

import com.aloha.dao.UserDao;
import com.aloha.springframework.beans.factory.InitializingBean;
import lombok.Data;

/**
 * @author DaiZhiHeng
 * @date 2023/7/23 21:42
 */
@Data
public class CustomerInitClass implements InitializingBean {

    private UserDao userDao;

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("初始化方法执行查询 ===> " + userDao.queryUserById("1001"));
    }
}

